﻿using Microsoft.AspNetCore.SignalR;

namespace AiBLSmartEdu.Module.SmartStockSense.API.Hubs;

/// <summary>
/// 消息通知
/// </summary>
public class NotificationHub : Hub
{
    // 发送通知给所有客户端
    public async Task SendNotification(string message)
    {
        await Clients.All.SendAsync("ReceiveNotification", message);
    }
}
